package com.tfjybj.itoo.teach.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * InstitutionModel
 * 党政部门表
 *
 * @author 田成荣 
 * @version 2.0.0
 * @since 2.0.0 2018-11-08 19:34:10
 */
@ApiModel(value = "InstitutionModel:党政部门表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class InstitutionModel implements Serializable {

    //region 模板逆向生产来自InstitutionEntity的属性
	/**
	 * id
	 */
	@ApiModelProperty(value = "institution主键")
	@Column(name = "id")
	private String id;
   	/**
	 * 党政部门名称
	 */
	@ApiModelProperty(value = "党政部门名称",required = true)
	private String name;

	/**
	 * 党政部门代码
	 */
	@ApiModelProperty(value = "党政部门代码",required = true)
	private String code;

    /**
     * 党政部门简称
     */
    @ApiModelProperty(value = "党政部门简称",required = true)
    private String abbreviation;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注",required = true)
    private String remark;

	/**
	 * 父节点
	 */
    @ApiModelProperty(value = "父节点")
	private String parentId;

	/**
	 * 类型（0-党政，1-学院）
	 */
	@ApiModelProperty(value = "类型",required = true)
	private Integer type;

	/**
	 * 机构类型（字典表dictionary）
	 */
    @ApiModelProperty(value = "机构类型（字典表dictionary）")
	private String institutionTypeId;

    //endregion

     /* *****************************以下是非模板生成的内容************************************ */
}
